package com.qfjy.service.Impl;

import com.qfjy.entity.Weiuser;
import com.qfjy.mapper.WeiuserMapper;
import com.qfjy.service.WeiUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class WeiUserImpl implements WeiUserService {
    @Autowired
    private WeiuserMapper weiuserMapper;

    @Override
    public int insertSelective(Weiuser record) {


        return weiuserMapper.insertSelective(record);
    }

    /**
     * 根据openid获取微信对象
     * @param openid
     * @return
     */
    @Override
    public Weiuser selectWeiUserByOpenid(String openid) {
        return weiuserMapper.selectWeiUserByOpenid(openid);
    }
}